package com.example.nextstream;

import com.example.nextstream.ws.WebSocketTunnel;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@ServletComponentScan
@MapperScan("com.example.nextstream.mapper")
public class NextStreamApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(NextStreamApplication.class, args);

    }

    @Override
    protected SpringApplicationBuilder configure(
            SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }



}
